package com.feng.chat.service;

import com.feng.chat.dto.Result;
import com.feng.chat.entity.TalkSession;
import com.baomidou.mybatisplus.extension.service.IService;
import com.feng.chat.vo.TalkCreateVO;

/**
 * <p>
 * 用户聊天列表 服务类
 * </p>
 *
 * @author dyf
 * @since 2022-05-31
 */
public interface ITalkSessionService extends IService<TalkSession> {

    //获取聊天信息列表
    public Result TalkList(Integer id);

    //创建会话
    public Result create(Integer id, TalkCreateVO talkCreateVO);

    //移除会话
    public Result delete(Integer sessionId);

    //设置群免打扰状态
    public Result disturb(Integer uid,Integer is_disturb,Integer receiver_id,Integer talk_type);

    //会话列表置顶
    public Result topping(Integer list_id,Integer type);
}
